namespace Plugins.Controls
{
    using System;
    using System.Windows.Controls;

    public static class PluginWindowControlHelper
    {
        public static void Draw(Canvas canvas, Action<Canvas> method)
        {
            if (method != null && canvas != null && canvas.Dispatcher != null)
            {
                canvas.Dispatcher.Invoke(method, canvas);
            }
        }
    }
}

